/**
 *    https://gitee.com/gitsc/pro-cloud/
 *     @Author Aijm 2929793435@qq.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *    http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.cloud.oss.service.impl;

import com.cloud.common.data.base.BaseService;
import com.cloud.common.data.util.ObjUtil;
import com.cloud.oss.beans.po.SysFile;
import com.cloud.oss.mapper.SysFileMapper;
import com.cloud.oss.service.SysFileService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 文件统一管理
 *
 * @author Aijm
 * @date 2019-09-11 17:24:43
 */
@Service
public class SysFileServiceImpl extends BaseService<SysFileMapper, SysFile> implements SysFileService {


    @Autowired
    private SysFileMapper sysFileMapper;

    /**
     * 保存文件
     *
     * @param sysFile
     */
    @Override
    public void saveFile(SysFile sysFile, Long userId) {
        sysFileMapper.saveFile(sysFile);
    }
}